From: Florian Müllner Date: Thu, 12 Feb 2026 13:48:36 +0000 (+0100) Subject: layout: Catch async errors X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~28^2~4^2^2~11 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e25ca28dbf8789b4ec82769ed5afc47e69a13089;p=gnome-shell.git layout: Catch async errors It is good practice to avoid "unhandled promise rejection" errors, even when a function is not expected to reject. Part-of: (cherry picked from commit c89d2061b38aa69f3aaafeb594d598c07b14721b) --- diff --git a/js/ui/layout.js b/js/ui/layout.js index e47c82f93..820f49fc8 100644 --- a/js/ui/layout.js +++ b/js/ui/layout.js @@ -603,7 +603,7 @@ export const LayoutManager = GObject.registerClass({ this._updateMonitors(); this._updateBoxes(); this._updateHotCorners(); - this._updateBackgrounds(); + this._updateBackgrounds().catch(logError); this._updateFullscreen(); this._updateVisibility(); this._queueUpdateRegions();